package com.dashboard.reading.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.dashboard.reading.entity.Book;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Update;
import org.springframework.stereotype.Repository;

@Mapper
@Repository
public interface BookMapper extends BaseMapper<Book> {
    @Update("UPDATE readingdashboard SET reflection = #{reflection}, rating = #{rating} WHERE id = #{id}")
    int updateBookDetails(Book book);
}